
package org.darcy.entity.privilege;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Schema(description="SysRole: 系统角色")
@TableName(value = "sys_role")
@Getter
@Setter
public class SysRole implements Serializable {

	private static final long serialVersionUID = 1L;

	@Schema(description = "")
	@TableId(type = IdType.AUTO)
	private Integer id;

	@Schema(description = "公司id")
	@TableField(value = "`company_id`")
	private String companyId;

	@Schema(description = "名称")
	@TableField(value = "`name`")
	private String name;

	@Schema(description = "标识")
	@TableField(value = "`sn`")
	private String sn;

	@Schema(description = "备注")
	@TableField(value = "`note`")
	private String note;

	@Schema(description = "创建时间")
	@TableField(value = "`create_time`")
	private Date createTime;

	@Schema(description = "更新时间")
	@TableField(value = "`update_time`")
	private Date updateTime;

	@Schema(description = "删除标识0：删除 1：存在")
	@TableField(value = "`del_flag`")
	private Integer delFlag;

	// 扩展属性

	@TableField(exist = false)
	private List<SysUser> users;

}
